<template>
    <div>
        <template>
            <el-table :data="shuju"style="width: 100% ,">
                <el-table-column prop="credit" label="学分" width="180">
                </el-table-column>
                <el-table-column prop="grade" label="年纪" width="180">
                </el-table-column>
                <el-table-column prop="id" label="id">
                </el-table-column>
                <el-table-column prop="location" label="地点" width="180">
                </el-table-column>
                <el-table-column prop="name" label="课程名" width="180">
                </el-table-column>
                <el-table-column prop="selectedCount" label="选课人数">
                </el-table-column>
                <el-table-column prop="time" label="上课时间">
                </el-table-column>





            </el-table>
        </template>
    </div>
</template>
<script>
import { skcx } from '@/api/index'
export default {
    data() {
        return {
            shuju:[]
        }
    },
    methods: {

        na() {
            skcx().then(res => {
                console.log(res);
                if (res.code == 0) {
                    this.shuju = res.data
                } console.log(this.shuju);


            })



        },
    },
    mounted() {
        this.na()

    



    }


}
</script>